package com.gl.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gl.order.entity.ShippingAddress;
import com.gl.order.entity.dto.ShippingAddressDto;
import com.gl.order.entity.vo.ShippingAddressVo;

import java.util.List;

public interface ShippingAddressService extends IService<ShippingAddress> {

    /**
     * 添加客户收货地址
     * @param dto
     */
    void addShippingAddress(ShippingAddressDto dto);

    /**
     * 查询客户收货地址
     * @param customerId
     */
    List<ShippingAddressVo> findByCustomerId(String customerId);
    /**
     * 获取销售对应客户下的所有地址
     * @param customerIds
     */
    List<ShippingAddressVo> findByCustomer(List<String> customerIds);

}
